import request from '@/utils/request'

export function getWarnInformationTable(params) {
  return request({
    url: '/cms/warnInformation/listPage',
    method: 'post',
    data: params
  })
}

export function deleteData(id) {
  return request({
    url: `/cms/warnInformation/${id}`,
    method: 'delete'
  })
}

export function addWarnInformation(params) {
  return request({
    url: '/cms/warnInformation/saveOrUpdate',
    method: 'post',
    data: params
  })
}

export function getWarnType(params) {
  return request({
    url: '/cms/warnInformation/warnType',
    method: 'get'
  })
}

